package com.chenl.provider.DTO;

import com.chenl.provider.DTO.vo.User;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@Accessors(chain = true)
public class UserInfo {
    List<User> users;
    UserInfo userInfo;
    Student student;
    @NotBlank
    private String name;
    private String age;
    private String phone;
    @Range(min = 10,max = 20)
    private Integer age2;
    @Max(30)
    private Integer age3;

}
